package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 客户地址表
 * </p>
 *
 * @author stylefeng
 * @since 2019-09-14
 */
@TableName("biz_customer_address")
public class CustomerAddress extends Model<CustomerAddress> {

    private static final long serialVersionUID = 1L;

    /**
     * 地址id
     */
    @TableId(value = "addressId", type = IdType.AUTO)
    private Integer addressId;
    /**
     * 客户id
     */
    private Integer consumerId;
    /**
     * 经度
     */
    private Double lat;
    /**
     * 纬度
     */
    private Double lng;
    /**
     * 地址详情
     */
    private String address;
    /**
     * 联系人手机号
     */
    private String phone;
    /**
     * 联系人姓名
     */
    private String name;
    /**
     * 1 男 0女
     */
    private Integer sex;
    /**
     * 0 酒店  1家里 2预约上店
     */
    private Integer type;


    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getConsumerId() {
        return consumerId;
    }

    public void setConsumerId(Integer consumerId) {
        this.consumerId = consumerId;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return this.addressId;
    }

    @Override
    public String toString() {
        return "CustomerAddress{" +
        "addressId=" + addressId +
        ", consumerId=" + consumerId +
        ", lat=" + lat +
        ", lng=" + lng +
        ", address=" + address +
        ", phone=" + phone +
        ", name=" + name +
        ", sex=" + sex +
        ", type=" + type +
        "}";
    }
}
